package com.zrrd.javaSEPlus._04_reflect;

import java.util.Arrays;

/**
 * @author WanJl
 * @version 1.0
 * @title Student
 * @description
 * @create 2023/11/12 11:29
 */
public class Student {
    private String name;
    private int age;

    public Student() {
        System.out.println("公共的...无参的构造方法");
    }

    public Student(String name, int age) {
        System.out.println("公共的...有参的构造方法");
        this.age = age;
    }
    private Student(String name){
        System.out.println("私有的...有参构造方法...");
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
    public static void method(int... a){
        System.out.println(Arrays.toString(a));
    }
    public static void method02(int[] a){
        System.out.println(a);
    }
    public String method03(String a){
        return a;
    }

    public static void main(String[] args) {
        method(1,2,3,4,5,6,8,9,4,1,3465,46,13,215,4,654,1);
        int[] arr={1,2,3,4,5};
        method02(arr);
    }
}
